package o2o;

import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * Created with IntelliJ IDEA.
 * User: Jahnke [1029777564@qq.com]
 * Date: 2018-01-26 17:39
 * 注：exclude = MongoAutoConfiguration.class 禁用springboot自带的mongo配置
 */
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, HibernateJpaAutoConfiguration.class, JpaRepositoriesAutoConfiguration.class})
@ComponentScan(basePackages = {"o2o", "wx","com.jinyou.utils.spring"})
@ServletComponentScan(basePackages = {"o2o.config.filter","o2o.delivery.filter"})
@EnableAsync
@Slf4j
public class O2OServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(O2OServerApplication.class, args);
        System.out.println("项目启动成功了！");
    }
}
